package cn.udrm.water.base.v1.baseconfig.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import cn.udrm.water.base.v1.baseconfig.entities.IndexMapConfig;

@Repository
public interface IndexMapConfigRepository extends JpaRepository<IndexMapConfig, String> {
	
	public List<IndexMapConfig> findByUseConfig(Boolean useConfig);

	@Query(value="FROM IndexMapConfig w WHERE w.id=?1")
	public IndexMapConfig findAllById(String id);
}
